package com.creative.accountsdk.net.account;

import com.creative.accountsdk.UmsChannel;
import com.creative.accountsdk.UserData;
import com.creative.accountsdk.UserInfor;
import com.creative.accountsdk.net.Protocol;
import com.creative.accountsdk.net.XParams;
import com.loopj.android.http.RequestParams;

import org.json.JSONObject;

/**
 * Created by wang_qian on 2015/11/30.
 */
public class ChildUnbindParentProtocol extends Protocol {

    private UserInfor parentInfo;

    public ChildUnbindParentProtocol () {
        parentInfo = UserData.getInstance().getParentinfor();
    }


    @Override
    public RequestParams getParams() {
        return new XParams().put("puid", parentInfo.uid)
                .put(UmsChannel.PARAM_NAME, UmsChannel.getChannel()).
                getParams();
    }

    @Override
    public String getUrl() {
        return getUrlPrefix()+"ui/unbind/parent";
    }

    @Override
    protected void parseReturnMap(JSONObject returnMap) {

    }
}
